﻿<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=yes">
    <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>详细信息</title>
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/ajz/css/iconfont.css">
    <link type="text/css" rel="stylesheet" href="${ctxStatic}/ajz/css/sf.css"/>
    <script type="text/javascript" src="${ctxStatic}/ajz/js/jquery.min.js"></script>
    <script type="text/javascript" src="${ctxStatic}/ajz/js/sf.js"></script>

    <script type="text/javascript" src="${ctxStatic}/ajz/js/menu_min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".menu ul li").menu();
        });
    </script>

    <style>
        input[type="text"] {
            border: 0;
            display: inline-block;
            height:30px;
            padding-left:1%;
            width: 97%;
            background: #f1f1f1;
            border-radius: 5px;
        }
        .info_box {

        }
    </style>

</head>
<body>
<div data-role="page">
    <div data-role="content-floud">

    <!--↓隐患点-->
    <c:forEach items="${list}" var="record" varStatus="var">
    <!--排查表-->
    <c:if test="${record.status == '4'.toString() }">
    <div class="hi_deg_0">
        <div class="hi_degtop_0">
            <p>
                <b><fmt:formatDate value="${record.updateDate}"
                                   pattern="yyyy-MM-dd"/></b>
            </p>
            <span>
                    <strong>
                        <c:if test="${var.last}">
                            排查记录
                        </c:if>
                        <c:if test="${!var.last}">
                            复查记录
                        </c:if>
                    </strong>
            </span>
        </div>

        <div class="menu">
            <ul>
                <li class=""><a class="table_photo_min_add_1 active " href="#">${var.count == 1 ? "":"展开"}</a>
                    <ul style="display: ${var.count == 1 ? "":"none"};">
                        <li>
                            <div class="hi_degcont_eq">
                                <i>现场检查：</i><b><fmt:formatDate value="${record.updateDate}"
                                                               pattern="yyyy年MM月dd日"/></b>
                                <span>
                                        <%--<a  href="paichabiao?id=${record.id}"></a>--%>
                                </span>
                                <i>记录人员：</i>
                                <b>${record.backup3}</b><span></span>
                                    <%--<i>证件号：</i><b>A31111</b><span></span>--%>
                            </div>
                            <div class="hi_degbtnbar bgcolor_b">
                                <a href="paichabiao?id=${record.id}">排查表</a>
                                <c:if test="${var.count == 1}">
                                    <a href="${grade == "3".toString() ? "fuchaEdit":"fuchaEdit1"}?checkId=${ajzBaseinfo.checkId}&userId=${userId}&ajzType=${ajzType}&hwzp=${ajzBaseinfo.storeInfo}">商家自检</a>
                                </c:if>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    </c:if>


    <!--已整改-->
    <c:if test="${record.status == '1'.toString()}">


    <div class="hi_deg_0 l1as_1">
        <div class="hi_degtop_0">
            <p>
                <b>
                    <fmt:formatDate value="${record.updateDate}" pattern="yyyy年MM月dd日"/>
                </b>
            </p>
                <span>
                    <strong>
                            ${record.deadline == null ? "无隐患" : "已整改"}
                    </strong>
                </span>
        </div>
        <div class="menu">
            <ul>
                <li class=""><a class="table_photo_min_add_1 active" href="#">${var.count == 1 ? "":"展开"}</a>
                    <ul style="display: ${var.count == 1 ? "":"none"};">
                        <li>
                            <div class="hi_degcont_eq ">
                                <i>现场检查：</i><b><fmt:formatDate value="${record.updateDate}"
                                                               pattern="yyyy年MM月dd日"/></b><span>
                                <c:if test="${record.type eq 'ajz_aqsc' || record.type eq 'ajz_cyfw'|| record.type eq 'ajz_sp_spxs' || record.type eq 'ajz_xf_dm' || record.type eq 'ajz_xf_czw'|| record.type eq 'ajz_ri_gd'|| record.type eq 'ajz_ri_gh'}">
                                     <a href="xianchang?id=${record.id}&ajzType=${record.type}">检查文书</a></span>
                                </c:if>
                                <c:if test="${record.type eq 'ajz_sp_zxxx'}">
                                    <a href="AppDiningTable?id=${record.id}&ajzType=${record.type}">检查文书</a></span>
                                </c:if>
                                <i>记录人员：</i><b>${record.backup3}</b><span></span>
                                    <%--<i>证件号：</i><b>A31111</b><span></span>--%>
                            </div>
                            <div class="hi_degbtnbar bgcolor_b">
                                <c:if test="${var.count == 1}">
                                    <c:if test="${record.type eq 'ajz_sp_zxxx'}">
                                        <a class="xcbtn_1" href="fuchaDiningTableEdit1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_aqsc'}">
                                        <a class="xcbtn_1" href="${grade eq "3".toString() ? "fuchaEdit":"fuchaEdit1"}?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}&action=self_inspect">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_cyfw'}">
                                        <a class="xcbtn_1" href="fuchaEdit1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_sp_spxs'}">
                                        <a class="xcbtn_1" href="fuchaEdit2?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_xf_dm'}">
                                        <a class="xcbtn_1" href="dmxffucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_xf_czw'}">
                                        <a class="xcbtn_1" href="czwfucha?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_ri_gd'}">
                                        <a class="xcbtn_1" href="gdrqfucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_ri_gh'}">
                                        <a class="xcbtn_1" href="yhsyqfucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                </c:if>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    </c:if>


    <!--未整改 未过期-->
    <c:if test="${record.status == '2'.toString() && record.deadline.time-nowDate >0 }">
    <div class="hi_deg_1">
        <div class="hi_degtop_1">
            <p>
                <b><fmt:formatDate value="${record.updateDate}"
                                   pattern="yyyy-MM-dd"/></b>
            </p>
                            <span>
                                    <strong>有隐患,未整改</strong>
                            </span>
        </div>

        <div class="menu">
            <ul>
                <li class=""><a class="table_photo_min_add_1 active " href="#">${var.count == 1 ? "":"展开"}</a>
                    <ul style="display: ${var.count == 1 ? "":"none"};">
                        <li>
                            <div class="hi_degcont_eq ">
                                <i>现场检查：</i><b><fmt:formatDate value="${record.updateDate}"
                                                               pattern="yyyy年MM月dd日"/></b><span>
                                 <c:if test="${record.type eq 'ajz_aqsc' || record.type eq 'ajz_cyfw'|| record.type eq 'ajz_sp_spxs' || record.type eq 'ajz_xf_dm' || record.type eq 'ajz_xf_czw'|| record.type eq 'ajz_ri_gd'|| record.type eq 'ajz_ri_gh'}">
                                     <a href="xianchang?id=${record.id}&ajzType=${record.type}">检查文书</a></span>
                                </c:if>
                                <c:if test="${record.type eq 'ajz_sp_zxxx'}">
                                    <a href="AppDiningTable?id=${record.id}&ajzType=${record.type}">检查文书</a></span>
                                </c:if>
                            </span>
                                <i>记录人员：</i><b>${record.backup3}</b><span></span>
                            </div>
                            <div class="hi_degbtnbar bgcolor_b">
                                <c:if test="${var.count == 1}">
                                    <c:if test="${record.type eq 'ajz_sp_zxxx'}">
                                        <a  class="xcbtn_1" href="fuchaDiningTableEdit1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_aqsc'}">
                                        <a class="xcbtn_1" href="fuchaEdit1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}&action=self_inspect">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_cyfw'}">
                                        <a  class="xcbtn_1"href="fuchaEdit1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_sp_spxs'}">
                                        <a  class="xcbtn_1" href="fuchaEdit2?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_xf_dm'}">
                                        <a class="xcbtn_1" href="dmxffucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_xf_czw'}">
                                        <a class="xcbtn_1" href="czwfucha?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_ri_gd'}">
                                        <a class="xcbtn_1"  href="gdrqfucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_ri_gh'}">
                                        <a class="xcbtn_1" href="yhsyqfucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                </c:if>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    </c:if>

    <!--未整改 已过期-->
    <c:if test="${record.status == '2'.toString() && record.deadline.time-nowDate < 0}">
    <div class="hi_deg_2">
        <div class="hi_degtop_2">
            <p>
                <b><fmt:formatDate value="${record.updateDate}"
                                   pattern="yyyy-MM-dd"/></b>
            </p>
                            <span>
                                    <strong>有隐患,未整改,已过期</strong>
                            </span>
        </div>
        <div class="menu">
            <ul>
                <li class=""><a class="table_photo_min_add_1 active " href="#">${var.count == 1 ? "":"展开"}</a>
                    <ul style="display: ${var.count == 1 ? "":"none"}">
                        <li>
                            <div class="hi_degcont_eq ">
                                <i>现场检查：</i><b><fmt:formatDate value="${record.updateDate}"
                                                               pattern="yyyy年MM月dd日"/></b><span>
                             <c:if test="${record.type eq 'ajz_aqsc' || record.type eq 'ajz_cyfw'|| record.type eq 'ajz_sp_spxs' || record.type eq 'ajz_xf_dm' || record.type eq 'ajz_xf_czw'|| record.type eq 'ajz_ri_gd'|| record.type eq 'ajz_ri_gh'}">
                                     <a href="xianchang?id=${record.id}&ajzType=${record.type}">检查文书</a></span>
                                </c:if>
                                <c:if test="${record.type eq 'ajz_sp_zxxx'}">
                                    <a href="AppDiningTable?id=${record.id}&ajzType=${record.type}">检查文书</a></span>
                                </c:if>
                            </span>
                                <i>记录人员：</i><b>${record.backup3}</b><span></span>
                                    <%--<i>证件号：</i><b>A31111</b><span></span>--%>
                            </div>
                            <div class="hi_degbtnbar bgcolor_b">
                                <c:if test="${var.count == 1}">
                                    <c:if test="${record.type eq 'ajz_sp_zxxx'}">
                                        <a class="xcbtn_1" href="fuchaDiningTableEdit1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_aqsc'}">
                                        <a class="xcbtn_1" href="fuchaEdit1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商1家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_cyfw'}">
                                        <a class="xcbtn_1" href="fuchaEdit1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_sp_spxs'}">
                                        <a class="xcbtn_1" href="fuchaEdit2?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_xf_dm'}">
                                        <a class="xcbtn_1" href="dmxffucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">复查记录</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_xf_czw'}">
                                        <a class="xcbtn_1" href="czwfucha?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_ri_gd'}">
                                        <a class="xcbtn_1" href="gdrqfucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                    <c:if test="${record.type eq 'ajz_ri_gh'}">
                                        <a class="xcbtn_1" href="yhsyqfucha1?checkId=${record.checkId}&userId=${userId}&ajzType=${record.type}">商家自检</a>
                                    </c:if>
                                </c:if>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    </c:if>

    </c:forEach>
    <br>
    <br>

</body>
</html>

